package com.jumi.microservice.stock.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * @ClassName JmStockGoodsStatisticsResponse
 * @Description 商品库存统计
 * @Author Abel Yang
 * @Date 2020/8/21/021 12:41
 **/
@ApiModel(value = "StockGoodsStatisticsResponse返回对象", description = "商品库存统计")
public class StockGoodsStatisticsResponse implements Serializable {
    private static final long serialVersionUID = -8733882764984839456L;

    @ApiModelProperty(value = "库存id")
    private Long id;
    @ApiModelProperty(value = "商品id")
    private Long goodsId;
    @ApiModelProperty(value = "商品编码")
    private String goodsCode;
    @ApiModelProperty(value = "库存物料属性个数")
    private int materialCount;
    @ApiModelProperty(value = "仓库id")
    private Long warehouseId;
    @ApiModelProperty(value = "入库数")
    private int inStockNum;
    @ApiModelProperty(value = "出库数")
    private int outStockNum;
    @ApiModelProperty(value = "实际库存")
    private int realStockNum;
    @ApiModelProperty(value = "可用库存")
    private int availableStockNum;
    @ApiModelProperty(value = "破损库存")
    private int damageStockNum;
    @ApiModelProperty(value = "占用库存")
    private int occupyNum;
    @ApiModelProperty(value = "可用库存")
    private int availableNum;
    @ApiModelProperty(value = "是否报警")
    private Boolean alarmed;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsCode() {
        return goodsCode;
    }

    public void setGoodsCode(String goodsCode) {
        this.goodsCode = goodsCode;
    }

    public int getMaterialCount() {
        return materialCount;
    }

    public void setMaterialCount(int materialCount) {
        this.materialCount = materialCount;
    }

    public Long getWarehouseId() {
        return null != warehouseId ? warehouseId : 0L;
    }

    public void setWarehouseId(Long warehouseId) {
        this.warehouseId = warehouseId;
    }

    public int getInStockNum() {
        return inStockNum;
    }

    public void setInStockNum(int inStockNum) {
        this.inStockNum = inStockNum;
    }

    public int getOutStockNum() {
        return outStockNum;
    }

    public void setOutStockNum(int outStockNum) {
        this.outStockNum = outStockNum;
    }

    public int getRealStockNum() {
        return realStockNum;
    }

    public void setRealStockNum(int realStockNum) {
        this.realStockNum = realStockNum;
    }

    public int getAvailableStockNum() {
        return availableStockNum;
    }

    public void setAvailableStockNum(int availableStockNum) {
        this.availableStockNum = availableStockNum;
    }

    public int getDamageStockNum() {
        return damageStockNum;
    }

    public void setDamageStockNum(int damageStockNum) {
        this.damageStockNum = damageStockNum;
    }

    public int getOccupyNum() {
        return occupyNum;
    }

    public void setOccupyNum(int occupyNum) {
        this.occupyNum = occupyNum;
    }

    public int getAvailableNum() {
        return availableNum;
    }

    public void setAvailableNum(int availableNum) {
        this.availableNum = availableNum;
    }

    public Boolean getAlarmed() {
        return alarmed;
    }

    public void setAlarmed(Boolean alarmed) {
        this.alarmed = alarmed;
    }
}
